package com.wen.yygh.hosp.service;

import com.wen.yygh.model.hosp.Hospital;
import com.wen.yygh.vo.hosp.HospitalQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author Wenjl
 */
public interface HospitalService {
    /**
     * 保存传递过来的医院信息
     * @param paramMap
     */
    void save(Map<String, Object> paramMap);

    Hospital getHospitalByHoscode(String hoscode);

    /**
     * 查询医院分页列表
     * @param pageNum
     * @param pageSize
     * @param hospitalQueryVo
     * @return
     */
    Page<Hospital> findHospPageByHospitalQueryVo(Integer pageNum, Integer pageSize, HospitalQueryVo hospitalQueryVo);

    void updateStatusById(String id, Integer status);


    Hospital findHospitalById(String id);

    String findHospName(String hoscode);

    List<Hospital> findHospByHospName(String hosname);
    /**
     * 根据医院编号获取医院详情
     * @param hoscode
     * @return
     */
    Map<String, Object> getParticularsByHoscode(String hoscode);

}
